<?php

namespace App\Models\wechat;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Ad extends Model
{
    //软删除
    use SoftDeletes;
    protected $dates = ['deleted_at'];

    ///白名单
    protected $fillable=['category_id', 'title', 'thumb','desc','url','sort_order'];

    public function category()
    {
        return $this->belongsTo('App\Models\wechat\ad_category');
    }
}
